﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WoBian.DA;
using WoBian.Lib.ConstString;
namespace WoBian.Biz.Admin.SystemSettings
{
    public class SystemSettingsBiz
    {
        public static string GetSystemSettingsValueByKey(string aKeyName)
        {
            IDbConnection connection = DataAccessFactory.CreateDbConnection();
            try
            {
                connection.Open();
                return DataAccessFactory.CreateSystemSettingsDAL(connection).GetSystemSettingsValueByKey(aKeyName);
            }
            finally
            {
                connection.Close();
            }
        }

        public static string GetAdminMgrPassword()
        {
            return GetSystemSettingsValueByKey(SystemSettingsKey.AdminMgrPassword);
        }
    }
}
